package com.pureut.system.mapper;

import com.pureut.system.domain.MaterialBomDetail;
import com.pureut.system.domain.MaterialBomDetailApi;
import com.pureut.system.domain.dto.MaterialBomDetailDto;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Description
 * @Param
 * @Date
 * @Author hl
 **/
public interface MaterialBomDetailMapper {
    int insertBomDetail(List<MaterialBomDetail> list);

    List<MaterialBomDetail> selectlBomDetailList(long bomId);

    int deleteMaterialBom(String[] bomIdS);

    int insertBomDetailBy(MaterialBomDetail materialBomDetail);

    List<MaterialBomDetailDto> getDosage(@Param("bomId") Long bomId, @Param("bomDetailType") int bomDetailType);

    List<MaterialBomDetailApi> selectBomDetailList(String code);
}
